package com.ermsystem.backend.controller.pk;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/pk/")
public class BotInfoController {
    @RequestMapping("getBotInfo/")
    public List<Map<String, String>> getBotInfo(){
        List<Map<String, String>> list = new LinkedList<>();
        Map<String, String> map1 = new HashMap<>();
        map1.put("name", "Erm");
        map1.put("version", "1.0.0");
        Map<String, String> map2 = new HashMap<>();
        map2.put("name", "Erm");
        map2.put("version", "1.0.0");
        list.add(map1);
        list.add(map2);
        return list;
    }
}
